package com.eco.mam.work.request;

import java.util.HashMap;
import java.util.Map;

/*Responsible for returnig  all the information from a  method call.
 *  This class is defined to achieve the unique response  passing and for passing
 *   multiple values.Internally uses a hash map and behaves like map*/
public class ResponseMap {

	private Map<String, Object> responseMap = null;

	public ResponseMap() {
		responseMap = new HashMap<String, Object>();
	}

	public ResponseMap(String key, Object value) {
		responseMap = new HashMap<String, Object>();
		responseMap.put(key, value);
	}

	public void add(String key, Object value) {
		responseMap.put(key, value);
	}

	public Object get(String key) {
		return responseMap.get(key);
	}

}
